<?php
/**
 * #test b=1&a=2
 */
class Core_Component_Index_Controller_Backend_Index {

    public function indexAction() {
        $id = $GLOBALS[RC]->getIdentity();
        if ($id->isLogin()) {
            if ($id->isInRole('admin')) {
                return $GLOBALS[RC]->getHelper()->templateResult();
            } else {
                return $GLOBALS[RC]->getHelper()->redirectResult('*/account/login/reject');
            }
        }
        return $GLOBALS[RC]->getHelper()->redirectResult('*/login/index/index');
    }

}